﻿using EONFULLSIN2.Common;
using EONFULLSIN2.Controls;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace EONFULLSIN2;

/// <summary>
/// Interaction logic for MainWindow.xaml 
/// </summary>
public partial class MainWindow
{
    public MainWindow()
    {
        InitializeComponent();
        NonClientAreaContent = new NonClientAreaControl();
    }

    private void Button_Click(object sender, RoutedEventArgs e)
    {
        var name = sender as Button;
        switch (name.Name)
        {
            case "error":
                PrismIocInfo.MessageService.GrowError("登录名不能为空！", "GrowlDemoPanel");  // 右上角显示
                break;
            case "info":
                PrismIocInfo.MessageService.GrowlInfo("登录名不能为空！", "GrowlDemoPanel");  // 右上角显示
                break;
            case "success":
                PrismIocInfo.MessageService.GrowSuccess("登录名不能为空！", "GrowlDemoPanel");  // 右上角显示
                break;
            case "ask":
                PrismIocInfo.MessageService.GrowAsk("登录名不能为空！", ((res) =>
                {
                    return true;
                }), "GrowlDemoPanel");  // 右上角显示
                break;
            default:
                break;
        }
    
    }
}